import { isMobile } from "./validate";

// 验证手机号码 
export const validateMobile = (rule, value, callback) => {
    if (!isMobile(value)) {
        callback(new Error('请输入正确的11位手机号'));
    } else {
        callback();
    }
};